/*******************************************************************************
 * Copyright (c) 2005, 2014 springside.github.io
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package com.sdgakj.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.sdgakj.entity.Permission;

public interface PermissionDao extends PagingAndSortingRepository<Permission, Long>,JpaSpecificationExecutor<Permission> {
	
	@Query(value="select * from sht_permission p where p.deltag=?1",nativeQuery =true)
 	List<Permission> getAllPerimission(String deltag);
	
}
